package cn.golxen.rsms.bean.entity;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ExcelIgnoreUnannotated
public class GoodsStore {
    @ExcelProperty(value = "商品条形码")
    String code;
    @ExcelProperty(value = "商品标题")
    String goodsName;
    int storeId;
    @ExcelProperty(value = "库存")
    String inventoryStr;
    int inventory;
    @ExcelProperty(value = "进货价")
    String costStr;
    Double cost=0.0;
    @ExcelProperty(value = "零售价")
    String priceStr;
    Double price=0.0;
//    int typeId;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    int recentSales;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    LocalDateTime creationDate;
    @ExcelProperty(value = "预警库存")
    String warnStr;
    int warn=3;
    int state=0;//0:正常； 1：库存预警；
}
